import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { HashRouter } from 'react-router-dom'
import { store,persistor} from './redux/store'
import { Provider } from 'react-redux';
import './App.css';
import './utils/request'
import {PersistGate} from 'redux-persist/integration/react'

ReactDOM.render(
  /* 此处需要用Provider包裹App，目的是让App所有的后代容器组件都能接收到store */
  <Provider store={store}>
    <PersistGate loading={null} persistor={persistor}>
      <HashRouter>
        <App />
      </HashRouter>
    </PersistGate>
</Provider>,
  document.getElementById('root')
);
